import {$get,$post} from './http'

//收单管理
export const $getPosting=async(params:object)=>{
    return await $get('./live/posting/list',params)
}
export const $getPostingType=async(params:object)=>{
    return await $get('./live/posting/type',params)
}
export const $getPostingPlatform=async(params:object)=>{
    return await $get('./live/posting/platform',params)
}
export const $isCatch=async(params:object)=>{
    return await $post('./live/posting/isCatch',params)
}
export const $isLiveNotice=async(params:object)=>{
    return await $post('./live/posting/isLiveNotice',params)
}
export const $isOrderNotice=async(params:object)=>{
    return await $post('./live/posting/isOrderNotice',params)
}
export const $updateGoodsSet=async(params:object)=>{
    return await $post('./live/scene/getVideo',params)
}
//收单管理-现场管理
export const $getVideo=async(params:object)=>{
    return await $get('./live/scene/getVideo',params)
}
export const $getMsg=async(params:object)=>{
    return await $get('./live/scene/getMsg',params)
}
export const $sendMsg=async(params:object)=>{
    return await $post('./live/scene/sendMsg',params)
}
export const $getSales=async(params:object)=>{
    return await $get('./live/scene/getSales',params)
}
export const $getLastGroup=async(params:object)=>{
    return await $get('./live/scene/getLastGroup',params)
}
export const $getGroupList=async(params:object)=>{
    return await $get('./live/scene/groupList',params)
}
export const $groupSort=async(params:object)=>{
    return await $get('./live/scene/groupSort',params)
}

export const $getCart=async(params:object)=>{
    return await $get('./live/cart/unpaid',params)
}
export const $getAllCart=async(params:object)=>{
    return await $get('./live/cart/allUser',params)
}

export const $status_nav=async(params:object)=>{
    return await $get('./live/order/status_nav',params)
}
export const $status=async(params:object)=>{
    return await $get('./live/order/status',params)
}
export const $shipping=async(params:object)=>{
    return await $get('./live/order/shipping',params)
}
export const $source=async(params:object)=>{
    return await $get('./live/order/source',params)
}
export const $morcart=async(params:object)=>{
    return await $get('./live/order/morecart',params)
}
export const $pay=async(params:object)=>{
    return await $get('./live/order/pay',params)
}
export const $print=async(params:object)=>{
    return await $get('./live/order/print',params)
}
export const $datetype=async(params:object)=>{
    return await $get('./live/order/datetype',params)
}
export const $getOrder=async(params:object)=>{
    return await $get('./live/order/list',params)
}

//商品管理
export const $getGoods=async(params:object)=>{
    return await $get('./live/goods/list',params)
}

export const $getCat=async(params:object)=>{
    return await $get('./live/cat/list',params)
}
// function login(data?:object){
//     return axios.post('./user/login/',data);
// }

// function register(data:unknown){
//     return axios.post('./user/register/',data);
// }




